package beans.proxy;

import java.lang.reflect.Proxy;

public class ProxyHelper
{
	public static IHello getHello()
	{
		IHello hello = new Hello();
		LogHandler handler = new LogHandler(hello);
		IHello proxy = (IHello) Proxy.newProxyInstance(hello.getClass().getClassLoader(), hello.getClass().getInterfaces(), handler);
		return proxy;
	}
}
